<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:84:"G:\phpstudy\PHPTutorial\WWW\yydc\public/../application/admin\view\questions\add.html";i:1567492774;s:75:"G:\phpstudy\PHPTutorial\WWW\yydc\application\admin\view\layout\default.html";i:1562338656;s:72:"G:\phpstudy\PHPTutorial\WWW\yydc\application\admin\view\common\meta.html";i:1562338656;s:74:"G:\phpstudy\PHPTutorial\WWW\yydc\application\admin\view\common\script.html";i:1562338656;}*/ ?>
<!DOCTYPE html>
<html lang="<?php echo $config['language']; ?>">
    <head>
        <meta charset="utf-8">
<title><?php echo (isset($title) && ($title !== '')?$title:''); ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">

<link rel="shortcut icon" href="/assets/img/favicon.ico" />
<!-- Loading Bootstrap -->
<link href="/assets/css/backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.css?v=<?php echo \think\Config::get('site.version'); ?>" rel="stylesheet">

<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
<!--[if lt IE 9]>
  <script src="/assets/js/html5shiv.js"></script>
  <script src="/assets/js/respond.min.js"></script>
<![endif]-->
<script type="text/javascript">
    var require = {
        config:  <?php echo json_encode($config); ?>
    };
</script>
    </head>

    <body class="inside-header inside-aside <?php echo defined('IS_DIALOG') && IS_DIALOG ? 'is-dialog' : ''; ?>">
        <div id="main" role="main">
            <div class="tab-content tab-addtabs">
                <div id="content">
                    <div class="row">
                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                            <section class="content-header hide">
                                <h1>
                                    <?php echo __('Dashboard'); ?>
                                    <small><?php echo __('Control panel'); ?></small>
                                </h1>
                            </section>
                            <?php if(!IS_DIALOG && !$config['fastadmin']['multiplenav']): ?>
                            <!-- RIBBON -->
                            <div id="ribbon">
                                <ol class="breadcrumb pull-left">
                                    <li><a href="dashboard" class="addtabsit"><i class="fa fa-dashboard"></i> <?php echo __('Dashboard'); ?></a></li>
                                </ol>
                                <ol class="breadcrumb pull-right">
                                    <?php foreach($breadcrumb as $vo): ?>
                                    <li><a href="javascript:;" data-url="<?php echo $vo['url']; ?>"><?php echo $vo['title']; ?></a></li>
                                    <?php endforeach; ?>
                                </ol>
                            </div>
                            <!-- END RIBBON -->
                            <?php endif; ?>
                            <div class="content">
                                <form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <!--<div class="form-group">-->
        <!--<label class="control-label col-xs-12 col-sm-2"><?php echo __('Question_id'); ?>:</label>-->
        <!--<div class="col-xs-12 col-sm-8">-->
            <!--<input id="c-question_id" data-rule="required" data-source="question/index" class="form-control selectpage" name="row[question_id]" type="text" value="">-->
        <!--</div>-->
    <!--</div>-->
    <!--<div class="form-group">-->
        <!--<label class="control-label col-xs-12 col-sm-2"><?php echo __('Num'); ?>:</label>-->
        <!--<div class="col-xs-12 col-sm-8">-->
            <!--<input id="c-num" data-rule="required" class="form-control" name="row[num]" type="text">-->
        <!--</div>-->
    <!--</div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Name'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Status'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            <?php if(is_array($statusList) || $statusList instanceof \think\Collection || $statusList instanceof \think\Paginator): if( count($statusList)==0 ) : echo "" ;else: foreach($statusList as $key=>$vo): ?>
            <label for="row[status]-<?php echo $key; ?>" ><input onclick="CheckedMarket1(this)" id="row[status]-<?php echo $key; ?>" name="row[status]" type="radio" value="<?php echo $key; ?>" <?php if(in_array(($key), explode(',',"1"))): ?>checked<?php endif; ?> /> <?php echo $vo; ?></label>
            <?php endforeach; endif; else: echo "" ;endif; ?>
            </div>

        </div>
    </div>
    <div class="form-group max" style="display: none">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('用户最多只能选择'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-max" data-rule="required" class="form-control" name="row[max]" type="text">
        </div>
    </div>
    <div class="form-group miaoa" style="display: none">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('最低分描述'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-miaoa" data-rule="required" class="form-control" name="row[mioa]" type="text">
        </div>
    </div>
    <div class="form-group miaob" style="display: none">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('最高分描述'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-miaob" data-rule="required" class="form-control" name="row[miob]" type="text">
        </div>
    </div>
    <div class="form-group option">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Option'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-option" class="form-control " rows="5" name="row[option]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group t-option">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('T_option'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-t_option" class="form-control " rows="5" name="row[t_option]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled"><?php echo __('OK'); ?></button>
            <button type="reset" class="btn btn-default btn-embossed"><?php echo __('Reset'); ?></button>
        </div>
    </div>
</form>
<script>
    function CheckedMarket1(obj) {
        var id = $(obj).attr('value');
        if(id == 2){
            $('.max').css("display","block");
        }else{
            $('.max').css("display","none");
        }
        if(id == 3 || id == 5){
            $('.t-option').css("display","none");
        }else{
            $('.t-option').css("display","block");
        }
        if(id == 5){
            $('.t-option').css("display","none");
            $('.option').css("display","none");
            $('.miaoa').css("display","block");
            $('.miaob').css("display","block");
        }else{

                $('.option').css("display","block");

            $('.miaoa').css("display","none");
            $('.miaob').css("display","none");

        }
        console.log($(obj).attr('value'));
    }

</script>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <script src="/assets/js/require<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js" data-main="/assets/js/require-backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js?v=<?php echo $site['version']; ?>"></script>
    </body>
</html>